﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Forum
{
    public interface IForumThread
    {
        void AddFormum(string title, string descirpiton, string text, int userId, bool solved, int categoryId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void AddForum(Model.ForumThread forum, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void DeleteForum(int forumId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void DeleteForum(Model.ForumThread forum, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void IsSolved(int forumId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        List<Model.ForumThread> GetAllForumsBySolved(int top, int categoryId, bool solved, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        void SolveForumThread(int forumId, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);

        Model.ForumThread GetForumById(int id, ref NutriLeaf.Web.Model.NutriLeafDBEntities context);
    }
}